Creates a view based on the specified IObservableSource<(Of <(<'T>)>)> collection.
Namespace:
C1.LiveLinqAssembly: C1.Silverlight.LiveLinq (in C1.Silverlight.LiveLinq.dll)
Syntax
C# |
---|
public static View<T> AsLive<T>( this IObservableSource<T> source, ViewOrder order ) |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function AsLive(Of T) ( _ source As IObservableSource(Of T), _ order As ViewOrder _ ) As View(Of T) |
Parameters
- source
- Type: C1.LiveLinq..::..IObservableSource<(Of <(<'T>)>)>
The IObservableSource<(Of <(<'T>)>)> collection to expose as a view.
- order
- Type: C1.LiveLinq.LiveViews..::..ViewOrder
Specifies whether to preserve source item order.
Type Parameters
- T
- The type of the elements in the collection.
Return Value
A view that contains the same elements as the IObservableSource<(Of <(<'T>)>)>Remarks
If the order parameter specifies preserving item order, the order of items in the source is preserved, at a certain performance cost, in the resulting view and in views based on it (for example, if you filter it with Where).
Note that Join does not preserve source order. If you need to order a join result, use OrderBy after Join.